package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 收藏/关注
 * @Date 2023-10-18 20:23:25
 * @author hjj
 */
@Data
@TableName("collect")
@ApiModel(value="Collect对象", description="收藏/关注")
public class Collect implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @ApiModelProperty("#课程所属教师id")
    private Integer teacherId;

    @NotNull(message="[类型（1关注教师，2关注课程，3智能推荐）]不能为空")
    @ApiModelProperty("类型（1关注教师，2关注课程，3智能推荐，4课程表）")
    private Integer type;

    @NotNull(message="[关注教师id/课程id/智能推荐sets]不能为空")
    @ApiModelProperty("关注教师id/课程id/智能推荐sets/课程表id")
    private Integer linkId;

    @TableField(exist = false) //该字段不存在于数据库中
    @ApiModelProperty("关注数据[1教师/2课程/3智能推荐]")
    private Object linkClass;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("用户id")
    private Integer userId;

    public Collect(Integer teacherId,Integer userId,Integer type, Integer linkId, String createTime) {
        this.teacherId=teacherId;
        this.userId=userId;
        this.type = type;
        this.linkId = linkId;
        this.createTime = createTime;
    }
}
